package com.xz.courseschedule.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xz.courseschedule.entity.Timetable;
import com.xz.courseschedule.utils.Result;

import java.util.List;

/**
 * 课程服务表
 */

public interface TimetableService extends IService<Timetable> {

    //获取冲突字段名列表
    Result getConflictingColumnNameList(Long semesterId,String columnName);

    //获取时间冲突的任务 ID
    Result getConflictingTimeslotIdList(Long semesterId,String columnName,String no);

    //获取单个任务的所有冲突
    Result getConfilctList(Long id);

    //自动调整时间解决冲
    Result rehearsalChangeTimeslot(Long id);

    //获取全部课表
    Result getList();

    //按班级查课表
    Result getTimetableByClassNo(String classNo);

    //结构化处理课表数据
    Result queryTimetableByClassNo(List<Timetable> timetableList);

    //手动调整课程时间
    Result adjust(Long srcId,Integer destTimeslot);
}
